package com.lyc.service;

import com.github.pagehelper.PageInfo;
import com.lyc.pojo.Cart;
import com.lyc.pojo.Goods;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GouService {
    //查询购物车
    public List<Cart> select(int uid);
    //
    public List<Cart> updateone(int num, int scid,int uid);

    List<Goods> getAllGoodsByUid(int uid);
    //查询当前用户购物车是否含有该商品
    public Cart selectCart(int gid, int uid);

    public void addGoods(Cart cart);

    public int removeByScid(int scid);


    /*后台*/
    public PageInfo<Cart> getGoByPage(Integer page, Integer limit);

    public List<Cart> selectAll();
}
